package com.chittoda.koncurrent.threadpool;

import com.chittoda.koncurrent.cache.CacheKeyIntf;

/**
 * ThreadPool interface
 * @author jitendra
 *
 */
public interface ThreadPoolIntf {

	/**
	 * Assign the task into ThreadPool
	 * @param key
	 * 		KEY using which task is sequentialise
	 * @param task
	 * 		Task that needs to be processed
	 * @return
	 */
	public Integer assignTask(CacheKeyIntf<? extends Object> key, Runnable task);
	
	
}
